var ZYRequestClient = require("../../../../utils/zy-request");
var requestClient;
const app = getApp();
Page({
  data:{
    packageName:'',
    recordId:0,
    rechargeRecordDetailList:[],
    navbarData:{
      showCapsule: 1, //是否显示左上角图标   1表示显示    0表示不显示
      title: '充值记录详情', //导航栏 中间的标题
      white:true
     },
     // 导航头的高度
     height: app.globalData.height * 2 + 20
  },
  onLoad(options) {
    requestClient = new ZYRequestClient();
    this.setData({
      packageName:options.packageName,
      recordId:parseInt(options.recordId),
    });
  },
  // 加载充值记录详情
  loadRechargeRecordDetailList(){
    var _this = this;
    requestClient.getRechargeRecordDetailList(_this.data.recordId,function(res){
        _this.setData({
          rechargeRecordDetailList:res.data.data
        });
    });
  },
  onShow(){
    this.loadRechargeRecordDetailList();
  }
})
